import network from '@/common/network.js'

//我的活动分页列表查询
export const myCompanyActivityList =param =>{
  return network({
    url: 'em-boot/biz/api/company/myCompanyActivityList',
    param
  })
}
//我的招聘分页列表查询
export const myComDeliveryList =param =>{
  return network({
    url: 'em-boot/biz/api/company/myComDeliveryList',
    param
  })
}
//我的职位列表-分页列表查询岗位
export const myCompanyPositionList =param =>{
  return network({
    url: 'em-boot/biz/api/company/myCompanyPositionList',
    param
  })
}

//我的招聘详情
export const comDeliveryInfo =deliveryId =>{
  return network({
    url: `em-boot/biz/api/emPosition/positionInfo?id=${deliveryId}`,
  })
}

//活动-通过id查询
export const emActivityInfo =activityId =>{
  return network({
    url: `em-boot/biz/api/emActivity/info?activityId=${activityId}`,
    auth: true,
  })
}
//活动-通过id查询
export const editCompanyActivity =data =>{
  return network({
    url: `em-boot/biz/api/company/editCompanyActivity`,
    data,
    method:'post',
    auth: true,
  })
}



//职位投递详情
export const deliveryInfo =deliveryId =>{
  return network({
    url: `em-boot/biz/api/emDelivery/deliveryInfo?deliveryId=${deliveryId}`,
    auth: true,
  })
}


//职位信息-通过id删除
export const deleteCompanyPosition =param =>{
  return network({
    url: `em-boot/biz/api/company/deleteCompanyPosition`,
    auth: true,
    param,
    method: 'post',
  })
}
//活动-通过id删除
export const deleteCompanyActivity =param =>{
  return network({
    url: `em-boot/biz/api/company/deleteCompanyActivity`,
    auth: true,
    param,
    method: 'post',
  })
}
